﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Filters;
using System.Web.Mvc;
namespace ValueProviderTest.Controllers
{
    public class Auth:AuthorizeAttribute
    {
        public override void OnAuthorization(AuthorizationContext filterContext)
        {
            filterContext.Result = new RedirectResult("https://www.baidu.com");
            //base.OnAuthorization(filterContext);
        }
    }
}